<template>
  <div>
    <h2 @click="showName">学校名称：{{ name }}</h2>
    <h2>学校地址：{{ address }}</h2>
  </div>
</template>

<script>
import { mixin, mixin2 } from "../mixin";

export default {
  name: "SchoolItem",
  data() {
    return {
      name: "合肥大学",
      address: "HEFEI",
    };
  },
  // 引入混入,复用配置,不覆盖当前组件的属性或方法
  mixins: [mixin, mixin2],
};
</script>

<style></style>
